package com.volcreate.week1;

import java.util.Scanner;

/**
 * @author zxc
 * @date 2020/9/20
 */
public class Main10 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        String[] split = s.split("\\s");
        switch (split[1]) {
            case "&":
                System.out.println(s + " = " + (Integer.parseInt(split[0]) & Integer.parseInt(split[2])));
                break;
            case "|":
                System.out.println(s + " = " + (Integer.parseInt(split[0]) | Integer.parseInt(split[2])));
                break;
            case "^":
                System.out.println(s + " = " + (Integer.parseInt(split[0]) ^ Integer.parseInt(split[2])));
                break;
            default:
                System.out.println("ERROR");
        }
    }
}
